-- GENERATED SPELL FOR [Illidari Assassin] --


function spell0_23403(pUnit, Event) --@Paralyzing Poison,n/a--
pUnit:FullCastSpellOnTarget(3609,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23403', 8333, 1)
end

function spell1_23403(pUnit, Event) --@Vanish,Self--
pUnit:FullCastSpellOnTarget(39667,pUnit)
pUnit:RegisterEvent('Sorts_23403', 4000, 1)
end

function Sorts_23403(pUnit, Event)
local choix_sorts_23403 = math.random(0, 1)
if choix_sorts_23403 == 0 then
pUnit:RegisterEvent('spell0_23403', 1, 1)
end
if choix_sorts_23403 == 1 then
pUnit:RegisterEvent('spell1_23403', 1, 1)
end
end

function mob23403_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_23403', math.random(1500, 3000), 1)
end

function mob23403_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23403_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23403_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(23403, 1, 'mob23403_Action')
RegisterUnitEvent(23403, 2, 'mob23403_Leave')
RegisterUnitEvent(23403, 3, 'mob23403_Kill')
RegisterUnitEvent(23403, 4, 'mob23403_Die')
